<?php
	# Defaults
	$TransmissionResultCode = 1;

	# Required Alterar para ficheiro de transact na pasta queries
        # PID 189
	require_once('../queries/qr_transact.php');

		$TrsID = $TrnID;
		if ($TransmissionResultCode == 1) {
		$TransactionFTName = transaction_filenamereturn($FileList[$p], $GetMethodParams[1]['ffFilenameFormat']);
		$TransactionModel = $TFTPATH_MODELS.$CorrDlm.'_'.$CorrExt.'_'.$CorrOb.'_'.$CorrVers.'.php';
                #guardar dados na BD

                include($TransactionModel);
			/*if (File_Output($dir.$TransactionFTName,$Transaction_Queries['TRANSACT_INCOMINGPAYMENTREJECT'],$CNC)==true) {
				$TransmissionResultCode = 2;
				## if active ftp transact
				if(isset($GETCOMMETH[1])){
					## copia ficheiro para pasta ftp
					if (!copy($dir.$TransactionFTName, $GetSettings[1]['set_Valor'].'//'.$GETCOMMETH[1]['CorrAgente'].'//OUT//'.$TransactionFTName)) {
					  $Exception_error = 'Error copying file.';
					}
				}
			}*/
		}